<?php 
/****

	If you want the best of the world,
give the world your best anytime！
            				——不二
                							
****/

defined('ACCESS')||exit('Forbidden!');
//模板引擎
class View {
	protected $smarty;

	public function __construct(){
		require_once(LIB_DIR.'/smarty/Smarty.class.php');
		$this->smarty = new Smarty();
	}

	//assign方法
	public function assign($key,$value){
		$this->smarty->assign($key,$value);
	}

	//display方法
	public function display($template){
		$this->smarty->display(VIEW_DIR.'/'.GROUP."/$template");
	}
}

